<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<a href="index.jsp"><img src="IMAGES/banner-image.png" border="0" alt="Logo Swim 2.0" id="logo"/></a>
<div id="login">
<% if(session.getAttribute("user")==null && session.getAttribute("admin")==null){ %>
	<a href="LoginServlet?act=loginForm">Login</a>
	<a href="RegistrationServlet?act=registrationForm">Registrati</a>
<% }else{ %>
	<%if(session.getAttribute("user")!=null){ %>
	<%= session.getAttribute("user") %>
	<%}else{ %>
	<%= session.getAttribute("admin") %>
	<%} %>
	<a href="LoginServlet?act=logout">Logout</a>
<% } %>
	
	</div>